package com.example.BlockChain.entity;

import java.math.BigDecimal;

public class TProduct {
    private int productId;
    private int merchantId;

    private String productName;

    //商品价格
    private BigDecimal price;

    //库存数量
    private int stockQuantity;

    //区块哈希

    public TProduct(int productId,int merchantId,String productName,BigDecimal price,int stockQuantity) {
        this.productId=productId;
        this.merchantId=merchantId;
        this.productName=productName;
        this.price=price;
        this.stockQuantity=stockQuantity;

    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getMerchantId() { return merchantId; }

    public void setMerchantId(int merchantId) {
        this.merchantId = merchantId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getStockQuantity() {
        return stockQuantity;
    }

    public void setStockQuantity(int stockQuantity) {
        this.stockQuantity = stockQuantity;
    }

}
